HAL XSPI state and control functions migration ¶
This section provides information about the HAL XSPI state and control functions migration.
HAL XSPI abort ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_Abort(XSPI_HandleTypeDef *hxspi);
|
HAL_XSPI_Abort(hal_xspi_handle_t *hxspi,
uint32_t timeout_ms);
|
HAL XSPI abort IT ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_Abort_IT(XSPI_HandleTypeDef *hxspi);
|
HAL_XSPI_Abort_IT(hal_xspi_handle_t *hxspi);
|
HAL XSPI set FIFO threshold ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_SetFifoThreshold(XSPI_HandleTypeDef *hxspi,
uint32_t Threshold);
|
HAL_XSPI_SetFifoThreshold(hal_xspi_handle_t *hxspi,
uint32_t threshold);
|
HAL XSPI get FIFO threshold ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_GetFifoThreshold(const XSPI_HandleTypeDef *hxspi);
|
HAL_XSPI_GetFifoThreshold(const hal_xspi_handle_t *hxspi);
|
HAL XSPI set memory type ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_SetMemoryType(XSPI_HandleTypeDef *hxspi,
uint32_t Type);
|
HAL_XSPI_SetMemoryType(hal_xspi_handle_t *hxspi,
hal_xspi_memory_type_t type);
|
HAL XSPI set device size ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_SetDeviceSize(XSPI_HandleTypeDef *hxspi,
uint32_t Size);
|
HAL_XSPI_SetMemorySize(hal_xspi_handle_t *hxspi,
hal_xspi_memory_size_t size);
|
HAL XSPI set clock prescaler ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_SetClockPrescaler(XSPI_HandleTypeDef *hxspi,
uint32_t Prescaler);
|
HAL_XSPI_SetPrescaler(hal_xspi_handle_t *hxspi,
uint32_t clk_prescaler);
|
HAL XSPI set timeout ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_SetTimeout(XSPI_HandleTypeDef *hxspi, uint32_t Timeout);
|
Removed from HAL2, the timeout is set directly as function parameter.
|
HAL XSPI get error ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_GetError(const XSPI_HandleTypeDef *hxspi);
|
HAL_XSPI_GetLastErrorCodes(const hal_xspi_handle_t *hxspi);
|
Related concept: Revised and optimized HAL error management
HAL XSPI get state ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_XSPI_GetState(const XSPI_HandleTypeDef *hxspi);
|
HAL_XSPI_GetState(const hal_xspi_handle_t *hxspi);
|
Related concept: Revised and optimized HAL state machine